<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
    <div class="txtcenter" style="margin:0 auto;padding-top:10px;">
        <form class="layui-form layui-form-pane" action="" autocomplete="off">
            <div class="winui-toolbar layui-col-xs12">
                <div class="winui-tool layui-col-xs3">
                    <select id="storeId" name="storeId" lay-filter="storeId" lay-search="">

                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-col-xs12" style="margin-top: 10px;">
                <div class="layui-inline">
                    <label class="layui-form-label">会员称呼</label>
                    <div class="layui-input-inline">
                        <input type="text" id="contacts" name="contacts" placeholder="请输入会员称呼" class="layui-input" />
                    </div>
                    <label class="layui-form-label">手机号码</label>
                    <div class="layui-input-inline">
                        <input type="text" id="phone" name="phone" placeholder="请输入手机号码" class="layui-input" />
                    </div>
                    <label class="layui-form-label">电子邮箱</label>
                    <div class="layui-input-inline">
                        <input type="text" id="email" name="email" placeholder="请输入电子邮箱" class="layui-input" />
                    </div>
                    <label class="layui-form-label"><language showName="com.skyeye.state"></language></label>
                    <div class="layui-input-inline">
                        <select id="enabled" name="enabled">
                            <option value="">全部</option>
                            <option value="1">启用</option>
                            <option value="2">禁用</option>
                        </select>
                    </div>
                    <label class="layui-form-label">VIN码</label>
                    <div class="layui-input-inline">
                        <input type="text" id="vinCode" name="vinCode" placeholder="请输入VIN码" class="layui-input" />
                    </div>
                    <button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
                    <button class="layui-btn list-form-search" lay-submit lay-filter="formSearch"><language showName="com.skyeye.search2"></language></button>
                </div>
            </div>
        </form>
    </div>
    <div class="winui-toolbar layui-col-xs12">
        <div class="winui-tool">
            <button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i><language showName="com.skyeye.refreshDataBtn"></language></button>
            <button id="addBean" class="winui-toolbtn" auth="1645538243179"><i class="fa fa-plus" aria-hidden="true"></i><language showName="com.skyeye.addBtn"></language></button>
        </div>
    </div>
    <div style="margin:auto 10px;">
        <table id="messageTable" lay-filter="messageTable"></table>

        <script type="text/html" id="tableBar">
            {{# if(d.enabled == 2 && auth('1645538253832')){ }}
                <a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
            {{# } }}
            {{# if(d.enabled == 2 && auth('1645538200866')){ }}
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete"><language showName="com.skyeye.deleteBtn"></language></a>
            {{# } }}
            {{# if(d.enabled == 1 && auth('1645538226519')){ }}
                <a class="layui-btn layui-btn-xs" lay-event="unenabled"><language showName="com.skyeye.disableBtn"></language></a>
            {{# } }}
            {{# if(d.enabled == 2 && auth('1645538216786')){ }}
                <a class="layui-btn layui-btn-xs" lay-event="enabled"><language showName="com.skyeye.enableBtn"></language></a>
            {{# } }}
            <!-- 只有启用中的会员才可以进行商品信息和套餐购买的操作 -->
            {{# if(d.enabled == 1 && auth('1644234235243')){ }}
                <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="memberCar">商品信息</a>
            {{# } }}
            {{# if(d.enabled == 1 && auth('1644239451422')){ }}
                <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="mealList">套餐购买</a>
            {{# } }}
        </script>
    </div>

    <script type="text/x-handlebars-template" id="selectTemplate">
        {{#each rows}}
        <option value="{{id}}">{{name}}</option>
        {{/each}}
    </script>

    <script src="../../assets/lib/layui/layui.js"></script>
    <script src="../../assets/lib/layui/custom.js"></script>
    <script type="text/javascript">
        layui.config({base: '../../js/member/'}).use('storeMemberList');
    </script>
</body>
</html>